import java.util.Arrays;
import java.util.Scanner;

/**
 * @author gao
 * @date 2025/11/8 12:28
 */

public class Solution {
    public void reverseString(char[] s) {
        int n = s.length;
        int left = 0, right = n - 1;

        while (left < right) {
            swap(s, left, right);
            left++;
            right--;
        }
    }

    private void swap(char[] s, int i, int j) {
        char tmp = s[i];
        s[i] = s[j];
        s[j] = tmp;
    }

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNext()) {
            int n = in.nextInt();
            in.nextLine();
            char[] s = new char[n];
            for (int i = 0; i < n; i++) {
                s[i] = in.nextLine().charAt(0);
            }
            Solution solution = new Solution();
            solution.reverseString(s);
            System.out.println(Arrays.toString(s));
        }
    }
}